package com.lb.design.strategy;

import org.springframework.stereotype.Component;

/**
 * @ClassName： ZhangsanHandler
 * @Description：
 * @Author: 蓝莲花
 * @Date： 2024/1/11 16:50
 * @Version： V1.0
 */
@Component
public class ZhangsanHandler implements Handler {
    @Override
    public void AAA(String name) {
        // 业务逻辑A
        System.out.println("zhangsan的业务");

    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory.register("zhangsan", this);
    }
}
